<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body>
</body>
</html><script type="text/javascript">
	$(document).ready(function(){
		$.validator.messages.required = "";
		$.validator.messages.date = "";
		$("#LoaiVanBan").validate();
	});
</script>
<?php
if(isset($_SESSION['QuyenHan']) && $_SESSION['QuyenHan'] == 1)
{
	// Lấy mã sách từ thanh địa chỉ
	$id = $_GET['id'];
	
	$loaivanban = new loaivanbanbs();
	$loaivanban->MaLoaiVanBan = $id;
	$danhsach = $loaivanban->GetList();
?>

<div id="NoiDung" class="form">
  <h3 class="text-primary">Chức vụ  <?php echo $danhsach[0]['TenLoaiVanBan']; ?></h3>
  <form id="LoaiVanBan" action="loaivanban-sua-xuly" method="post" class="form-horizontal" role="form">
  <input type="hidden" value="<?php echo $id; ?>" name="MaLoaiVanBan" />
    <div class="form-group form-custom">
      <label  for="tenphong">Loại văn bản:</label>
      <div class="input-group">
        <input type="text" class="form-control" placeholder="Loại văn bản" name="TenLoaiVanBan" value="<?php echo $danhsach[0]['TenLoaiVanBan']; ?>" class="required" />
        <span class=" input-group-addon">*</span></div>
    </div>
   
    <div class="form-group form-custom">
      <label  for="dienthoai">Mô tả:</label>
      <div class="input-group">
        <input type="text" class="form-control" placeholder="Nhập số qMô tả" name="MoTa" value="<?php echo $danhsach[0]['MoTa']; ?>"  class="required" />
        <span class="input-group-addon">*</span> </div>
    </div>
    
    <p class="requirefields">(*): Các trường bắt buộc phải nhập.</p>
    <input type="submit" value="Sữa" class="btn-primary btn-md pull-right" name="btnThem" />
  </form>
</div>
<?php
}else
{
	ThongBaoLoi("Vui lòng đăng nhập !");
}
?>